package com.jinhongone.service.impl;

import com.jinhongone.dao.UserDao;
import com.jinhongone.service.UserService;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2025/4/26 12:53
 */
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public UserServiceImpl() {
        System.out.println("UserService 对象被创建....");
    }

    @Override
    public void add() {
        System.out.println("userService add方法被调用...");
        userDao.add();
    }
}
